package com.dqx.haoqiu.mvp.widget;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.dqx.haoqiu.mvp.R;
import com.xmjs.baselibrary.view.dialog.ExSweetAlertDialog;

public class LoadingDialog extends ExSweetAlertDialog {

    public LoadingDialog(Context context) {
        super(context, R.layout.dialog_loading);
        setCancelable(false);
        setCanceledOnTouchOutside(false);

        ImageView loadingView = (ImageView) findViewById(R.id.iv_base_loading);
        Glide.with(getContext())
                .load(R.drawable.loading)
                .asGif()
                .into(loadingView);
    }
}
